/*
 * Copyright (c) 2025 Industrial Software Feature Database
 */
package com.comac.ins.isfd.domain;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.List;

@Data
public class IsfdMeshOp2Info {

    /**
     * 结果文件名称
     */
    private String fileName;

    /**
     * 结果库关联id
     */
    @Field("uploadId")
    private String uploadId;

    /**
     * 文件哈希
     */
    private String fileHash;

    /**
     * 表名
     */
    private String collectionName;

    private List<Op2Result> op2Results;

    @Data
    public static class Op2Result {
        private String name;
        private List<String> headers;
        private List<Op2Subcase> op2Subcases;
    }

    @Data
    public static class Op2Subcase {
        @Field("id")
        private Integer id;

        private Integer numElement;

        private Integer numColumn;
    }

}
